from common.base_page import BasePage


class ProductAddPage(BasePage):
    def add_product(self, kind_index='1'):
        """
        添加商品步骤
        :param kind_index: 一级分类的索引
        :return:
        """
        # 点击商品分类
        self.click_element(locator=self['product_kind_select'])
        # 点击一级分类
        self.click_element(locator=self['product_kind_select_index'].format(kind_index))
        # 输入文本
        pass